<div class="box"> <!-- Box begins here -->
	<h2>Thông tin thành viên</h2>
	<!--
Standard form within a fieldset tag;
-->
	<?php 
		$data = $this->data;
	?>

<form method="post" action="" enctype="multipart/form-data"><!-- Form -->
			<?php if($data['image']) {?>
				<div class="view_image">
					<img <?php echo 'src="'.$this->baseUrl().WEBMASTER_URL.'/'.$data['image'].'"';?> width="180px"/>
				</div>
				<?php }?>
			<fieldset>
				<fieldset><legend>Thông tin cá nhân</legend>
					
					<div class="input_field">
						<label for="username">Email đăng nhập</label>
 												
 						<?php echo $this->formText("username",$data['email'],array('readonly'=>'readonly')); ?>
					</div>
					<div class="input_field">
						<label for="fullname">Tên đầy đủ</label>						
 						<?php echo $this->formText("fullname",$data['last_name'].' '.$data['middle_name'].' '.$data['first_name'],array('readonly'=>'readonly')); ?>
					</div>
					<div class="input_field">
						<label for="birthday">Ngày sinh nhật</label>						
 						<?php echo $this->formText("birthday",$data['birthday'],array('readonly'=>'readonly')); ?>
					</div>
					<div class="input_field">
						<label for="sex">Giới tính</label>
						
 						<select name="sex">
 							<?php if($data['sex']==0) {?>
 							<option value="Nam" >Nam</option>
 							<?php } else {?>
 							<option value="Nữ" >Nữ</option>
 							<?php }?>
 						</select>
					</div>
				</fieldset>
				<fieldset><legend>Thông tin liên lạc</legend>
					<div class="input_field">
							<label for="phone">Số điện thoại</label>						
	 						<?php echo $this->formText("phone",$data['phone'],array('readonly'=>'readonly')); ?>
						</div>
						<div class="input_field">
							<label for="address">Địa chỉ</label>						
	 						<?php echo $this->formText("address",$data['address'],array('readonly'=>'readonly')); ?>
						</div>
						<div id="input_district" class="input_field">
							<label for="district">Quận/Huyện </label>
	 						<select name="district">
	 							<?php 
	 								$modelDistrict = new Model_District_District();
	 								$district = $modelDistrict->getNamebyId($data['district']);
	 							?>
	 							<option value="<?php echo $district?>" selected="selected"><?php echo $district;?></option>
	 						</select>
 						</div>
						<div class="input_field">
							<label for="province">Tỉnh/Thành phố </label>
	 						<select name="province">
	 							<?php 
	 								$modelProvince = new Model_Province_Province();
	 								$province = $modelProvince->getNamebyId($data['province']);	 									
	 							?>
	 							<option value="<?php echo $province; ?>" selected="selected"><?php echo $province;?></option>
	 						</select>
 						</div>
 						
				</fieldset>	
				<fieldset><legend>Quyền</legend>
					<div class="input_field">
						<label for="role">Quyền </label>
						
 						<select name="role">
 							<option value="<?php $data['role']; ?>"><?php echo Model_WebmasterRole_WebmasterRole::getNamebyId($data['role'])?></option>
 						</select>
					</div>
					<div class="input_field">
						<label for="status">Trạng thái</label>						
 						<?php 
 							if($data['status']==0)
 								echo $this->formText("status","Không kích hoạt",array('readonly'=>'readonly')); 
 							else
 								echo $this->formText("status","Kích hoạt",array('readonly'=>'readonly')); 
 						?>
					</div>
				</fieldset>
					<input class="submit" type="submit" name="btback" value="Quay lại" />
					<input class="submit" type="submit" name="btedit" value="Chỉnh sửa thông tin" />
					<input class="submit" type="submit" name="btchangepass" value="Đổi mật khẩu" />
			</fieldset>
					
			</form><!-- /Form -->
</div> <!-- END Box-->